feat(corp): 사업자번호 기반 운영 업종 dropdown 자동 차단#201
Merged
Conversation
- backend/src/services/corp_brand_resolver.py: users.company_name → ftc_brand_franchise.corpNm 매칭, get_corp_industries / resolve_brand_for_industry - backend/src/main.py: GET /corp/operated-industries (JWT 기반 자동 추출), _validate_and_resolve_brand 헬퍼 + 7 endpoint Depends(get_optional_user) 통합 - backend/src/schemas/simulation_input.py: biz_number optional 필드 - frontend/src/api/client.ts: getOperatedIndustries() + OperatedIndustriesResponse 타입 - frontend/src/App.tsx: mount 시 fetch + 운영 외 frontend 라벨 disable + line-through + click toast 다업종 corp ((주)더본코리아 8업종 27 brand 등) 시 운영 외 업종 dropdown 차단. 비회원/CORP_NOT_IN_FTC: industries=null 반환 → 모든 업종 허용 (graceful degrade). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /corp/operated-industries신규 endpoint — JWT user → users.biz_number → ftc_brand_franchise.corpNm 매칭으로 운영 업종/brand list 반환industries=null→ 모든 업종 허용 (graceful degrade)변경 파일
backend/src/services/corp_brand_resolver.py(신규) —get_corp_industries/resolve_brand_for_industrybackend/src/main.py—/corp/operated-industries+_validate_and_resolve_brand+ 7 endpointDepends(get_optional_user)통합backend/src/schemas/simulation_input.py—biz_numberoptional 필드frontend/src/api/client.ts—getOperatedIndustries()+OperatedIndustriesResponsefrontend/src/App.tsx— mount fetch + dropdown disabled UXTest plan
🤖 Generated with Claude Code